<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: nannan
  Date: 2021/6/2
  Time: 20:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/tubiao.css">
</head>
<body>
<!-- start header -->
<header>
    <div class="top center"style="text-align: center">
        <div class="right fr">
            <div class="gouwuche fr"><a href="${pageContext.request.contextPath}/gouwuche.html">购物车</a></div>
            <div class="fr">
                <ul>
                    <li><i id="userIcon" class="iconfont">&#xe669;</i>${sessionScope.user.name}</li>
                </ul>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
</header>
<!--end header -->
<!-- start banner_x -->
<div class="banner_x center">
    <a href="index.jsp" target="_blank"><div class="logo fl"></div></a>
    <div class="nav fl" style="margin-left: 170px">
        <ul>
            <li><a href="liebiao.html" target="_blank">枪炮</a></li>
            <li><a href="">刀具</a></li>
            <li><a href="">载具</a></li>
            <li><a href="">飞行器</a></li>
            <li><a href="">舰艇</a></li>
            <li><a href="">导弹</a></li>
            <li><a href="">其他</a></li>
        </ul>
    </div>
    <div class="search fr" style="margin-left: 100px;margin-top: -2px">
        <form action="${pageContext.request.contextPath}/mvc/showLoginProductBySearch.do" method="post">
            <div class="text fl">
                <input type="text" class="shuru"  placeholder="Glock-17&nbsp;QBZ191现货" style="text-align: center" name="name">
            </div>
            <div class="submit fl">
                <input type="submit" class="sousuo" value="搜索"/>
            </div>
            <div class="clear"></div>
        </form>
        <div class="clear"></div>
    </div>
</div>
<!-- end banner_x -->
<!-- self_info -->
<div class="grzxbj">
    <div class="selfinfo center">
        <div class="lfnav fl">
            <div class="ddzx">订单中心</div>
            <div class="subddzx">
                <ul>
                    <li><a href="dingdanzhongxin.html" >我的订单</a></li>
                </ul>
            </div>

            <div class="ddzx">个人中心</div>
            <div class="subddzx">
                <ul>
                    <li><a href="./self_info.html" style="color:#ff6700;font-weight:bold;">我的个人中心</a></li>
                </ul>
            </div>
        </div>
        <div class="rtcont fr">
            <form action="${pageContext.request.contextPath}/mvc/updateUser.do" method="post">
                <div class="grzlbt ml40">我的资料</div>
                <div class="subgrzl ml40"><span>昵称</span><span><input type="text" name="name" value="${sessionScope.user.name}" readonly="readonly" style="color: gray;border: none;outline: none"></span><span>×</span></div>
                <div class="subgrzl ml40"><span>密码</span><span><input type="text" name="password" value="${sessionScope.user.password}" style="border: none;outline: none"></span><span>√</span></div>
                <div class="subgrzl ml40"><span>邮箱</span><span><input type="email" name="email" value="${sessionScope.user.userinfo.email}" style="border: none;outline: none"></span><span>√</span></div>
                <div class="subgrzl ml40"><span>手机号码</span><span><input type="text" name="phone" value="${sessionScope.user.userinfo.phone}" style="border: none;outline: none"></span><span>√</span></div>
                <div class="subgrzl ml40"><span>国家</span>
                    <span>
                        <select name="country" style="width: 640px;border: none;outline: none">
                            <option value="${sessionScope.user.userinfo.country.id}">${sessionScope.user.userinfo.country.name}</option>
                            <c:forEach items="${requestScope.allCountryList}" var="allCountry">
                                <option value="${allCountry.id}">${allCountry.name}</option>
                            </c:forEach>
                        </select>
                    </span>
                    </div>
                <div class="subgrzl ml40"><span>省份</span>
                    <span>
                        <select name="province" style="width: 640px;border: none;outline: none">
                            <option value="${sessionScope.user.userinfo.province.id}">${sessionScope.user.userinfo.province.name}</option>
                            <c:forEach items="${requestScope.allProvinceList}" var="allProvince">
                                <option value="${allProvince.id}">${allProvince.name}</option>
                            </c:forEach>
                        </select>
                     </span>
                    </div>
                <div class="subgrzl ml40"><span>所在城市</span><span><input type="text" name="city" value="${sessionScope.user.userinfo.city}" style="border: none;outline: none"></span><span>√</span></div>
                <div class="subgrzl ml40"><span>详细地址</span><span><input type="text" name="addressdetail" value="${sessionScope.user.userinfo.addressdetail}" style="border: none;outline: none"></span><span>√</span></div>
                <div class="regist_submit" style="background-color: #83c44e;width: 350px;height: 40px;margin: 0px auto;margin-top: 70px">
                    <input style="background-color: #83c44e;width: 350px;height: 45px;border: none;color: white;font-size: 20px;font-family: 'Microsoft YaHei UI';font-weight: bold" type="submit" name="submit" value="点击修改" >
                </div>
            </form>

        </div>
        <div class="clear"></div>
    </div>
</div>
<!-- self_info -->
<footer>
    <div class="copyright">简体 | 繁体 | English | 常见问题</div>
    <div class="copyright">罗德岛制药公司版权所有-罗ICP备111451419-<img src="image/ghs.png" alt="">罗公网安备1145141919810号-罗ICP证114514号</div>
</footer>
<footer>

</footer>
</body>
</html>
